﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001143 RID: 4419
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetCurInteractEntityScRsp : IMessage<SetCurInteractEntityScRsp>, IMessage, IEquatable<SetCurInteractEntityScRsp>, IDeepCloneable<SetCurInteractEntityScRsp>, IBufferMessage
	{
		// Token: 0x170037F4 RID: 14324
		// (get) Token: 0x0600C5C7 RID: 50631 RVA: 0x00216308 File Offset: 0x00214508
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetCurInteractEntityScRsp> Parser
		{
			get
			{
				return SetCurInteractEntityScRsp._parser;
			}
		}

		// Token: 0x170037F5 RID: 14325
		// (get) Token: 0x0600C5C8 RID: 50632 RVA: 0x0021630F File Offset: 0x0021450F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetCurInteractEntityScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170037F6 RID: 14326
		// (get) Token: 0x0600C5C9 RID: 50633 RVA: 0x00216321 File Offset: 0x00214521
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetCurInteractEntityScRsp.Descriptor;
			}
		}

		// Token: 0x0600C5CA RID: 50634 RVA: 0x00216328 File Offset: 0x00214528
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetCurInteractEntityScRsp()
		{
		}

		// Token: 0x0600C5CB RID: 50635 RVA: 0x00216330 File Offset: 0x00214530
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetCurInteractEntityScRsp(SetCurInteractEntityScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C5CC RID: 50636 RVA: 0x00216355 File Offset: 0x00214555
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetCurInteractEntityScRsp Clone()
		{
			return new SetCurInteractEntityScRsp(this);
		}

		// Token: 0x170037F7 RID: 14327
		// (get) Token: 0x0600C5CD RID: 50637 RVA: 0x0021635D File Offset: 0x0021455D
		// (set) Token: 0x0600C5CE RID: 50638 RVA: 0x00216365 File Offset: 0x00214565
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600C5CF RID: 50639 RVA: 0x0021636E File Offset: 0x0021456E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetCurInteractEntityScRsp);
		}

		// Token: 0x0600C5D0 RID: 50640 RVA: 0x0021637C File Offset: 0x0021457C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetCurInteractEntityScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C5D1 RID: 50641 RVA: 0x002163AC File Offset: 0x002145AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C5D2 RID: 50642 RVA: 0x002163EB File Offset: 0x002145EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C5D3 RID: 50643 RVA: 0x002163F3 File Offset: 0x002145F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C5D4 RID: 50644 RVA: 0x002163FC File Offset: 0x002145FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C5D5 RID: 50645 RVA: 0x00216430 File Offset: 0x00214630
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C5D6 RID: 50646 RVA: 0x0021646E File Offset: 0x0021466E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetCurInteractEntityScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C5D7 RID: 50647 RVA: 0x0021649F File Offset: 0x0021469F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C5D8 RID: 50648 RVA: 0x002164A8 File Offset: 0x002146A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004FA4 RID: 20388
		private static readonly MessageParser<SetCurInteractEntityScRsp> _parser = new MessageParser<SetCurInteractEntityScRsp>(() => new SetCurInteractEntityScRsp());

		// Token: 0x04004FA5 RID: 20389
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004FA6 RID: 20390
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04004FA7 RID: 20391
		private uint retcode_;
	}
}
